<?php
include_once 'inc/global.php';
include 'inc/conn.php';

$content = '';

if(isset($_POST['txtcontent']))
    $content = htmlentities($_POST['txtcontent']);

$sql = "update ats_content set content='". addslashes($content)."' where id=1";

$result = @mysql_query($sql)
    or die('query error: '.$sql);

echo "Data have been saved";
?>
